<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>华为活动</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <meta name="renderer" content="webkit" />
    <link rel="stylesheet" href="../assets/css/amazeui.min.css" />
    <style>

        #overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000;opacity:0.65;filter:alpha(opacity=65);z-index:999;display: none;}
        #win, #win2{position:absolute; width: 100%; height: 100%;z-index:1001;display: none;}
        .okKonw{ width: 100%; overflow: hidden; }

        #win2 img{margin-top: 50%;position:fixed}

        .no-display{display: none;}
        .over-p{position: absolute;width: 100%;text-align: center;margin: 5px 0 0;color: #8d2433}
        .rad-btn{position: absolute;background-color: #fff7b0;border-color: #ede496;font-size:1.4rem;padding:0.4em 0.6em;top: 45%;}
        .aa{position:absolute; width: 100%; text-align: center; margin: 0; color: #8d2433; font-size: 1.4rem; top: 76%}
        .pp{position:absolute; margin: 0; width: 45%; top:10px; left: 26%}
        .am-btn.am-radius{border-radius: 5px}
        .bb{position: absolute; bottom: 25px; display: block; width: 100%; margin: 0; text-align: center;font-size: 1.2rem;font-weight: bold}

        @media only screen and (min-height: 641px) and (max-height: 667px) {
            .aa{top: 60%}
            .pp{top:30px;}
        }

        @media only screen and (min-height: 668px) and (max-height: 736px) {
            .aa{top: 62%}
            .pp{top:30px;}
        }
    </style>
</head>
<body>
<!-- 蒙版图层 -->
<div id="overlay">
</div>
<div id="win">
    <img class="okKonw" src="../assets/i/mo.png" alt=""/>
</div>

<div id="win2">
    <img class="okKonw2" src="../assets/i/action/tips.png" alt=""/>
</div>

<div style="position: relative">
    <p class="bb">领券时间：5月27日-6月2日</p>
    <img src="../assets/i/action/huawei-top.png"/>
</div>
<!-- 领券页面 -->
<div class="no-display">
    <img src="../assets/i/action/huawei-1.png"/>
    <div style="position: relative;">
        <p class="over-p">剩余:<span>238</span>张</p>
        <p style="position:absolute;top:40%;margin: 0; width: 100%; padding: 0 4.5em;">
            <button id="lq" style="background-color:#d13838;" class="am-btn am-btn-danger am-btn-block am-radius">免费领取</button>
        </p>

        <img src="../assets/i/action/huawei-bg1.png"/>
    </div>
    <div class="btn" style="position: relative">
        <button type="button" style="left: 8%" class="rad-btn am-btn am-btn-default am-round rules">使用规则</button>
        <button type="button" style="right: 8%" class="rad-btn am-btn am-btn-default am-round">华为店地址</button>
        <img src="../assets/i/action/huawei-bottom.png"/>
    </div>
</div>

<!--已领券-->
<div class="no-display">
    <img src="../assets/i/action/huawei-2.png"/>
    <div style="position: relative;">
        <p class="pp">
            <img src="../assets/i/action/huawei-erwei.png" alt=""/>
        </p>
        <!--
        <p style="position:absolute;bottom:20px;margin: 0; width: 100%; padding: 0 4.5em;">
            <button id="gz" style="background-color:#d13838;" class="am-btn am-btn-danger am-btn-block am-radius">如何关注？</button>
        </p>-->
        <p class="over-p" style="position:absolute;bottom:30px;margin: 0; width: 100%; padding: 0 4.5em;font-size: 1.4rem;">长按二维码识别关注</p>

        <img src="../assets/i/action/huawei-bg2.png"/>
    </div>
    <div class="btn" style="position: relative">
        <button type="button" style="left: 8%" class="rad-btn am-btn am-btn-default am-round rules">使用规则</button>
        <button type="button" style="right: 8%" class="rad-btn am-btn am-btn-default am-round">华为店地址</button>
        <img src="../assets/i/action/huawei-bottom2.png"/>
    </div>
</div>

<!--领取到券-->
<div class="">
    <img src="../assets/i/action/huawei-3.png"/>
    <div style="position: relative;">
        <p style="position:absolute; margin: 0; width: 45%; top:10px; left: 26%">
            <img src="../assets/i/action/huawei-erwei.png" alt=""/>
        </p>
        <p class="aa">请立即关注快快公众号激活使用，逾期无效</p>
        <p class="over-p" style="position:absolute;bottom:10px;margin: 0; width: 100%; padding: 0 4.5em;font-size: 1.4rem;">长按二维码识别关注</p>
        <!--<p style="position:absolute;bottom:20px;margin: 0; width: 100%; padding: 0 4.5em;">
            <button id="gz2" style="background-color:#d13838;" class="am-btn am-btn-danger am-btn-block am-radius">如何关注？</button>
        </p>-->
        <img src="../assets/i/action/huawei-bg2.png"/>
    </div>
    <div class="btn" style="position: relative">
        <button type="button" style="left: 8%" class="rad-btn am-btn am-btn-default am-round rules">使用规则</button>
        <button type="button" style="right: 8%" class="rad-btn am-btn am-btn-default am-round">华为店地址</button>
        <img src="../assets/i/action/huawei-bottom2.png"/>
    </div>
</div>


<img src="../assets/i/action/huawei-img01.png" style="margin-top: 45px;"/>
<img src="../assets/i/action/huawei-img02.png" style="margin: 70px 0 20px 0;"/>
<!--[if (gte IE 9)|!(IE)]><!-->
<script src="../assets/js/jquery.min.js" type="text/javascript"></script>
<!--<![endif]-->
<!--[if lte IE 8 ]>
<script src="../assets/js/jquery.min-1.11.1.js" type="text/javascript"></script>
<![endif]-->
<script src="../assets/js/amazeui.js" type="text/javascript"></script>
<script src="../assets/js/amazeui.widgets.helper.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function() {
        $("#lq").on('click', function() {
           alert("免费领取成功");
        });

        $('#gz').on('click', function() {
            $('#overlay').css('display', 'block');
            $('#win').css('display', 'block');
        });

        $('.okKonw').on('click', function() {
            $('#overlay').css('display', 'none');
            $('#win').css('display', 'none');
        });

        $('.rules').on('click', function() {
            $('#overlay').css('display', 'block');
            $('#win2').css('display', 'block');
        });

        $('#win2, .okKonw2').on('click', function() {
            $('#overlay').css('display', 'none');
            $('#win2').css('display', 'none');
        });

        function hengshuping(){
            if(window.orientation == 180 || window.orientation == 0){
                //alert("竖屏状态！");
                $('#overlay').css('height','100%');
                $('#win').css('height','100%');
                $('#win').removeClass('menban');
            }
            if(window.orientation == 90 || window.orientation == -90){
                //alert("横屏状态！");
                $('#overlay').css('height','auto');
                $('#win').css('height','auto');
                $('#win').addClass('menban');
            }
        }
        window.addEventListener("onorientationchange" in window ? "orientationchange" : "resize", hengshuping, false);

        /*$('#win2 img').css('marginTop', (window.screen.height-250) + "px");
        console.log((window.screen.height) + "px");*/
    });
</script>
</body>
</html>